package com.zt.dev.physicalequipment.service;

import com.zt.dev.physicalequipment.pojo.*;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface PhysicalEquipmentService {
    List<PhysicalEquipment> getAllEquipment();

    int register(MessageDTO message);

    int insertEquipment(EquipmentDTO equipment);

    int updateEquipmentMessage(PhysicalEquipmentMessage equipment);

    List<PhysicalType> getTypesByEquipment(Integer equipmentId);

	List<PhysicalEquipmentMessage> getMessageByEquipment(Integer equipmentId);

	List<PhysicalTypeValue> getValueBymId(Integer id);

	PhysicalTypeValue getValueBymIdAndtId(Integer id, Integer id2);

	PageBean<PhysicalEquipmentMessage> getAllEquipmentMessage(int currentPage, int pageSize);

    List<PhysicalEquipmentMessage> copy(Integer[] id);

	List<PhysicalEquipmentMessage> getAllEquipmentMessageWithoutPageBean();

	int deleteMessages(Integer[] ids);

	MessageDTO getMessageDetail(Integer id);

	HSSFWorkbook export();

	HSSFWorkbook exportHeader();

	HSSFWorkbook exportByIds(Integer[] ids);

	boolean importPhysical(MultipartFile file);
}
